<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui, viewport-fit=cover">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>My App</title>
    <link rel="stylesheet" href="../../packages/core/css/framework7.min.css">
    <link rel="stylesheet" href="../../css/framework7-icons.css">
  </head>
  <body>
    <div id="app"></div>
    <template id="app-template">
      <f7-app>
        <f7-view main>
          <f7-page>
            <f7-navbar title="Form Inputs"></f7-navbar>
      
            <f7-block-title>Full Layout / Inline Labels</f7-block-title>
              <f7-list inline-labels no-hairlines-md>
                <f7-list-input
                  label="Name"
                  type="text"
                  placeholder="Your name"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Password"
                  type="password"
                  placeholder="Your password"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="E-mail"
                  type="email"
                  placeholder="Your e-mail"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="URL"
                  type="url"
                  placeholder="URL"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Phone"
                  type="tel"
                  placeholder="Your phone number"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Gender"
                  type="select"
                  defaultValue="Male"
                  placeholder="Please choose..."
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                  <option value="Male">Male</option>
                  <option value="Female">Female</option>
                </f7-list-input>
      
                <f7-list-input
                  label="Birthday"
                  type="date"
                  defaultValue="2014-04-30"
                  placeholder="Please choose..."
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Date time"
                  type="datetime-local"
                  placeholder="Please choose..."
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Range"
                  :input="false"
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                  <f7-range slot="input" :value="50" :min="0" :max="100" :step="1"></f7-range>
                </f7-list-input>
      
                <f7-list-input
                  label="Textarea"
                  type="textarea"
                  placeholder="Bio"
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Resizable"
                  type="textarea"
                  resizable
                  placeholder="Bio"
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
              </f7-list>
      
              <f7-block-title>Full Layout / Stacked Labels</f7-block-title>
              <f7-list no-hairlines-md>
                <f7-list-input
                  label="Name"
                  type="text"
                  placeholder="Your name"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Password"
                  type="password"
                  placeholder="Your password"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="E-mail"
                  type="email"
                  placeholder="Your e-mail"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="URL"
                  type="url"
                  placeholder="URL"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Phone"
                  type="tel"
                  placeholder="Your phone number"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Gender"
                  type="select"
                  defaultValue="Male"
                  placeholder="Please choose..."
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                  <option value="Male">Male</option>
                  <option value="Female">Female</option>
                </f7-list-input>
      
                <f7-list-input
                  label="Birthday"
                  type="date"
                  defaultValue="2014-04-30"
                  placeholder="Please choose..."
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Date time"
                  type="datetime-local"
                  placeholder="Please choose..."
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Range"
                  :input="false"
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                  <f7-range slot="input" :value="50" :min="0" :max="100" :step="1"></f7-range>
                </f7-list-input>
      
                <f7-list-input
                  label="Textarea"
                  type="textarea"
                  placeholder="Bio"
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Resizable"
                  type="textarea"
                  resizable
                  placeholder="Bio"
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
              </f7-list>
      
              <f7-block-title>Floating Labels (MD-theme only)</f7-block-title>
              <f7-list no-hairlines-md>
                <f7-list-input
                  label="Name"
                  floating-label
                  type="text"
                  placeholder="Your name"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Password"
                  floating-label
                  type="password"
                  placeholder="Your password"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="E-mail"
                  floating-label
                  type="email"
                  placeholder="Your e-mail"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="URL"
                  floating-label
                  type="url"
                  placeholder="URL"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Phone"
                  floating-label
                  type="tel"
                  placeholder="Your phone number"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Resizable"
                  floating-label
                  type="textarea"
                  resizable
                  placeholder="Bio"
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
              </f7-list>
      
              <f7-block-title>Validation + Additional Info</f7-block-title>
              <f7-list no-hairlines-md>
                <f7-list-input
                  label="Name"
                  type="text"
                  placeholder="Your name"
                  info="Default validation"
                  required
                  validate
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Fruit"
                  type="text"
                  placeholder="Type 'apple' or 'banana'"
                  required
                  validate
                  pattern="apple|banana"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                  <span slot="info">Pattern validation (<b>apple|banana</b>)</span>
                </f7-list-input>
      
                <f7-list-input
                  label="E-mail"
                  type="email"
                  placeholder="Your e-mail"
                  info="Default e-mail validation"
                  required
                  validate
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="URL"
                  type="url"
                  placeholder="Your URL"
                  info="Default URL validation"
                  required
                  validate
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  label="Number"
                  type="text"
                  placeholder="Enter number"
                  info="With custom error message"
                  error-message="Only numbers please!"
                  required
                  validate
                  pattern="[0-9]*"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
              </f7-list>
      
              <f7-block-title>Icon + Input</f7-block-title>
              <f7-list no-hairlines-md>
                <f7-list-input
                  type="text"
                  placeholder="Your name"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  type="password"
                  placeholder="Your password"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  type="email"
                  placeholder="Your e-mail"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
                <f7-list-input
                  type="url"
                  placeholder="URL"
                  clear-button
                >
                  <f7-icon icon="demo-list-icon" slot="media"></f7-icon>
                </f7-list-input>
      
              </f7-list>
      
              <f7-block-title>Label + Input</f7-block-title>
              <f7-list no-hairlines-md>
                <f7-list-input
                  label="Name"
                  type="text"
                  placeholder="Your name"
                  clear-button
                ></f7-list-input>
      
                <f7-list-input
                  label="Password"
                  type="password"
                  placeholder="Your password"
                  clear-button
                ></f7-list-input>
      
                <f7-list-input
                  label="E-mail"
                  type="email"
                  placeholder="Your e-mail"
                  clear-button
                ></f7-list-input>
      
                <f7-list-input
                  label="URL"
                  type="url"
                  placeholder="URL"
                  clear-button
                ></f7-list-input>
              </f7-list>
      
              <f7-block-title>Only Inputs</f7-block-title>
              <f7-list no-hairlines-md>
                <f7-list-input
                  type="text"
                  placeholder="Your name"
                  clear-button
                ></f7-list-input>
      
                <f7-list-input
                  type="password"
                  placeholder="Your password"
                  clear-button
                ></f7-list-input>
      
                <f7-list-input
                  type="email"
                  placeholder="Your e-mail"
                  clear-button
                ></f7-list-input>
      
                <f7-list-input
                  type="url"
                  placeholder="URL"
                  clear-button
                ></f7-list-input>
              </f7-list>
      
              <f7-block-title>Inputs + Additional Info</f7-block-title>
              <f7-list no-hairlines-md>
                <f7-list-input
                  type="text"
                  placeholder="Your name"
                  info="Full name please"
                  clear-button
                ></f7-list-input>
      
                <f7-list-input
                  type="password"
                  placeholder="Your password"
                  info="8 characters minimum"
                  clear-button
                ></f7-list-input>
      
                <f7-list-input
                  type="email"
                  placeholder="Your e-mail"
                  info="Your work e-mail address"
                  clear-button
                ></f7-list-input>
      
                <f7-list-input
                  type="url"
                  placeholder="URL"
                  info="Your website URL"
                  clear-button
                ></f7-list-input>
              </f7-list>
      
              <f7-block-title>Only Inputs Inset</f7-block-title>
              <f7-list inset>
                <f7-list-input
                  type="text"
                  placeholder="Your name"
                  clear-button
                ></f7-list-input>
      
                <f7-list-input
                  type="password"
                  placeholder="Your password"
                  clear-button
                ></f7-list-input>
      
                <f7-list-input
                  type="email"
                  placeholder="Your e-mail"
                  clear-button
                ></f7-list-input>
      
                <f7-list-input
                  type="url"
                  placeholder="URL"
                  clear-button
                ></f7-list-input>
              </f7-list>
          </f7-page>
        </f7-view>
      </f7-app>
      
    </template>
    <style>
      .demo-list-icon {
        background: #ccc;
        display: block;
        position: relative;
      }
      .ios .demo-list-icon, .ios .icon-f7, .ios .icon-vi {
        width: 29px;
        height: 29px;
        border-radius: 6px;
        box-sizing: border-box;
      }
      .md .demo-list-icon, .md .icon-f7, .md .icon-vi {
        width: 24px;
        height: 24px;
        border-radius: 4px;
      }
      
    </style>
    <script>var component = {}</script>
    <script src="../../packages/vue/vue.min.js"></script>
    <script src="../../packages/vue/framework7-vue.min.js"></script>
    <script src="../../packages/core/js/framework7.min.js"></script>
    <script>
      var theme = 'ios';
      if (location.href.indexOf('theme=md') >= 0) theme = 'md';
      
      if (Framework7.use) Framework7.use(Framework7Vue, { theme: theme });
      else if (Framework7.Class && Framework7.Class.use) Framework7.Class.use(Framework7Vue, { theme: theme });
      
      var plugin = {
        params: {
          theme: theme,
        }
      };
      
      if (Framework7.use) Framework7.use(plugin);
      else if (Framework7.Class && Framework7.Class.use) Framework7.Class.use(plugin);
      
      if (typeof component === 'undefined') {
        var component = {};
      }
      if (typeof routes === 'undefined') {
        var routes = [];
      }
      component.el = '#app';
      component.template = '#app-template';
      
      new Vue(component);
    </script>
  </body>
</html>